package com.mulanweb.validator;

/**
 * Created by hcy on 2016/4/8.
 */
public class ValidateStatus {

    public static final ValidateStatus SUCCESS = new ValidateStatus(1, "成功");
    public static final ValidateStatus FAILURE = new ValidateStatus(0, "失败");
    public static final ValidateStatus NOT_FOUND_RESOURCE = new ValidateStatus(2, "没有配置验证资源");
    public static final ValidateStatus NOT_FOUND_FORM = new ValidateStatus(3, "没有配置验证表单");

    private Integer code;
    private String message;

    public ValidateStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
